package com.klun.designMode.builder;

/**
 * 测试代码
 */
public class MainTest {
    public static void main(String[] args) {
        // 建造一个指导者
        CarDirector director = new CarDirector();
        Car car = director.constructCar(new ConcreteBuilder(new Car()));
        System.out.println(car.getWheel());
        System.out.println(car.getEngine());
        System.out.println(car.getSkeleton());
    }
}
